#ifndef DIALOGCHOIXLOT_H
#define DIALOGCHOIXLOT_H

#include <QDialog>
#include "ui_dialogchoixlot.h"
#include <QCheckBox>
#include <QSpacerItem>
#include "image.h"

namespace Ui {
    class DialogChoixLot;
}

class DialogChoixLot : public QDialog
{
    Q_OBJECT
    Q_ENUMS(typeAppel)

public:
    enum typeAppel
    {
            calculDELot = 0,
            categories = 1,
            creationIndex = 2
    };

    DialogChoixLot(QWidget *parent = 0);
    DialogChoixLot(QWidget *parent = 0, QList<Image> listeImages = * new QList<Image>(), typeAppel type = calculDELot);
    ~DialogChoixLot();


    int nbImages;
    QCheckBox ** checkBox;
    typeAppel type;

private:
    Ui::DialogChoixLot ui;

signals:
    void retourDialogCalcDELot(bool * checkedIndex);
    void retourDialogCalcCategories(bool * checkedIndex);
    void retourCreationIndex(bool * checkedIndex);

private slots:
    void validation();
};

#endif // DIALOGCHOIXLOT_H
